<template>
  <div class="about-us-container">
    <!-- 背景装饰 -->
    <div class="background-decoration">
      <div class="floating-shapes">
        <div class="shape shape-1"></div>
        <div class="shape shape-2"></div>
        <div class="shape shape-3"></div>
        <div class="shape shape-4"></div>
      </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="content-wrapper">
      <!-- 头部横幅 -->
      <div class="hero-section">
        <div class="hero-content">
          <h1 class="hero-title">关于 MicroInvest</h1>
          <p class="hero-subtitle">引领金融科技创新，为全球投资者提供专业、安全、便捷的投资服务</p>
          <div class="hero-stats">
            <div class="stat-item">
              <span class="stat-number">10+</span>
              <span class="stat-label">年行业经验</span>
            </div>
            <div class="stat-item">
              <span class="stat-number">100万+</span>
              <span class="stat-label">注册用户</span>
            </div>
            <div class="stat-item">
              <span class="stat-number">50+</span>
              <span class="stat-label">国家地区</span>
            </div>
            <div class="stat-item">
              <span class="stat-number">99.9%</span>
              <span class="stat-label">系统可用性</span>
            </div>
          </div>
        </div>
      </div>

      <!-- 公司介绍 -->
      <section class="company-intro">
        <div class="section-header">
          <h2>公司简介</h2>
          <p>MicroInvest 成立于2014年，是一家专注于金融科技创新的领先企业</p>
        </div>
        <div class="intro-content">
          <div class="intro-text">
            <p>MicroInvest 致力于通过先进的技术手段，为全球投资者提供专业、安全、便捷的投资服务。我们拥有强大的技术团队和丰富的金融行业经验，致力于打造最先进的投资平台。</p>
            <p>我们的使命是通过技术创新降低投资门槛，让每个人都能享受到专业的投资服务。我们相信，科技的力量可以改变金融行业的未来，让投资变得更加简单、透明和高效。</p>
            <div class="core-values">
              <div class="value-item">
                <h4>创新驱动</h4>
                <p>持续技术创新，引领行业发展</p>
              </div>
              <div class="value-item">
                <h4>用户至上</h4>
                <p>以用户需求为中心，提供优质服务</p>
              </div>
              <div class="value-item">
                <h4>安全可靠</h4>
                <p>银行级安全标准，保障资金安全</p>
              </div>
            </div>
          </div>
          <div class="intro-image">
            <div class="image-placeholder">
              <i class="el-icon-office-building"></i>
              <p>公司总部</p>
            </div>
          </div>
        </div>
      </section>

      <!-- 发展历程 -->
      <section class="timeline-section">
        <div class="section-header">
          <h2>发展历程</h2>
          <p>见证 MicroInvest 的成长与创新之路</p>
        </div>
        <div class="timeline">
          <div class="timeline-item">
            <div class="timeline-year">2014</div>
            <div class="timeline-content">
              <h3>公司成立</h3>
              <p>MicroInvest 正式成立，开始金融科技创业之路</p>
            </div>
          </div>
          <div class="timeline-item">
            <div class="timeline-year">2016</div>
            <div class="timeline-content">
              <h3>平台上线</h3>
              <p>首个投资交易平台正式上线，获得首批用户认可</p>
            </div>
          </div>
          <div class="timeline-item">
            <div class="timeline-year">2018</div>
            <div class="timeline-content">
              <h3>技术突破</h3>
              <p>自主研发的AI投资分析系统投入使用</p>
            </div>
          </div>
          <div class="timeline-item">
            <div class="timeline-year">2020</div>
            <div class="timeline-content">
              <h3>全球扩张</h3>
              <p>业务扩展至全球50多个国家和地区</p>
            </div>
          </div>
          <div class="timeline-item">
            <div class="timeline-year">2023</div>
            <div class="timeline-content">
              <h3>行业领先</h3>
              <p>成为全球领先的金融科技平台，用户突破100万</p>
            </div>
          </div>
        </div>
      </section>

      <!-- 团队介绍 -->
      <section class="team-section">
        <div class="section-header">
          <h2>核心团队</h2>
          <p>汇聚全球顶尖人才，打造专业投资平台</p>
        </div>
        <div class="team-grid">
          <div class="team-member">
            <div class="member-avatar">
              <i class="el-icon-user"></i>
            </div>
            <h3>张伟</h3>
            <p class="member-title">创始人 & CEO</p>
            <p class="member-desc">前高盛投资银行副总裁，拥有15年金融行业经验，斯坦福大学金融学博士</p>
          </div>
          <div class="team-member">
            <div class="member-avatar">
              <i class="el-icon-user"></i>
            </div>
            <h3>李娜</h3>
            <p class="member-title">CTO</p>
            <p class="member-desc">前谷歌高级工程师，人工智能专家，麻省理工学院计算机科学硕士</p>
          </div>
          <div class="team-member">
            <div class="member-avatar">
              <i class="el-icon-user"></i>
            </div>
            <h3>王强</h3>
            <p class="member-title">CFO</p>
            <p class="member-desc">前摩根大通财务总监，注册会计师，哈佛商学院MBA</p>
          </div>
          <div class="team-member">
            <div class="member-avatar">
              <i class="el-icon-user"></i>
            </div>
            <h3>陈敏</h3>
            <p class="member-title">产品总监</p>
            <p class="member-desc">前阿里巴巴产品经理，用户体验专家，10年互联网产品经验</p>
          </div>
        </div>
      </section>

      <!-- 企业文化 -->
      <section class="culture-section">
        <div class="section-header">
          <h2>企业文化</h2>
          <p>以价值观为基石，构建卓越团队</p>
        </div>
        <div class="culture-grid">
          <div class="culture-item">
            <div class="culture-icon">
              <i class="el-icon-lightbulb"></i>
            </div>
            <h3>创新精神</h3>
            <p>鼓励创新思维，拥抱变化，持续探索金融科技的前沿技术</p>
          </div>
          <div class="culture-item">
            <div class="culture-icon">
              <i class="el-icon-handshake"></i>
            </div>
            <h3>诚信为本</h3>
            <p>坚持诚信经营，建立长期信任关系，赢得客户信赖</p>
          </div>
          <div class="culture-item">
            <div class="culture-icon">
              <i class="el-icon-trophy"></i>
            </div>
            <h3>追求卓越</h3>
            <p>追求卓越品质，精益求精，为用户提供最佳体验</p>
          </div>
          <div class="culture-item">
            <div class="culture-icon">
              <i class="el-icon-connection"></i>
            </div>
            <h3>团队协作</h3>
            <p>倡导团队合作，共同成长，实现个人与企业的双赢</p>
          </div>
        </div>
      </section>

      <!-- 技术优势 -->
      <section class="tech-section">
        <div class="section-header">
          <h2>技术优势</h2>
          <p>领先的技术实力，保障平台稳定运行</p>
        </div>
        <div class="tech-features">
          <div class="tech-feature">
            <div class="feature-icon">
              <i class="el-icon-cpu"></i>
            </div>
            <h3>AI智能分析</h3>
            <p>基于机器学习的智能投资分析系统，提供精准的投资建议</p>
          </div>
          <div class="tech-feature">
            <div class="feature-icon">
              <i class="el-icon-lock"></i>
            </div>
            <h3>安全防护</h3>
            <p>多层安全防护体系，银行级加密技术，保障用户资金安全</p>
          </div>
          <div class="tech-feature">
            <div class="feature-icon">
              <i class="el-icon-data-analysis"></i>
            </div>
            <h3>实时数据</h3>
            <p>毫秒级数据更新，全球市场实时监控，把握投资先机</p>
          </div>
          <div class="tech-feature">
            <div class="feature-icon">
              <i class="el-icon-mobile"></i>
            </div>
            <h3>移动优先</h3>
            <p>响应式设计，支持多端访问，随时随地管理投资</p>
          </div>
        </div>
      </section>

      <!-- 合作伙伴 -->
      <section class="partners-section">
        <div class="section-header">
          <h2>合作伙伴</h2>
          <p>携手全球顶尖机构，共建金融生态</p>
        </div>
        <div class="partners-grid">
          <div class="partner-item">
            <div class="partner-logo">
              <i class="el-icon-bank-card"></i>
            </div>
            <h3>摩根大通</h3>
            <p>全球顶级投资银行</p>
          </div>
          <div class="partner-item">
            <div class="partner-logo">
              <i class="el-icon-money"></i>
            </div>
            <h3>高盛集团</h3>
            <p>国际知名金融机构</p>
          </div>
          <div class="partner-item">
            <div class="partner-logo">
              <i class="el-icon-coin"></i>
            </div>
            <h3>花旗银行</h3>
            <p>全球金融服务巨头</p>
          </div>
          <div class="partner-item">
            <div class="partner-logo">
              <i class="el-icon-credit-card"></i>
            </div>
            <h3>Visa</h3>
            <p>全球支付技术公司</p>
          </div>
        </div>
      </section>

      <!-- 联系我们 -->
      <section class="contact-section">
        <div class="section-header">
          <h2>联系我们</h2>
          <p>随时为您提供专业服务与支持</p>
        </div>
        <div class="contact-info">
          <div class="contact-item">
            <div class="contact-icon">
              <i class="el-icon-location"></i>
            </div>
            <div class="contact-details">
              <h3>公司地址</h3>
              <p>北京市朝阳区建国门外大街1号<br>国贸大厦A座28层</p>
            </div>
          </div>
          <div class="contact-item">
            <div class="contact-icon">
              <i class="el-icon-phone"></i>
            </div>
            <div class="contact-details">
              <h3>客服热线</h3>
              <p>400-888-8888<br>周一至周日 9:00-21:00</p>
            </div>
          </div>
          <div class="contact-item">
            <div class="contact-icon">
              <i class="el-icon-message"></i>
            </div>
            <div class="contact-details">
              <h3>邮箱地址</h3>
              <p>service@microinvest.com<br>support@microinvest.com</p>
            </div>
          </div>
        </div>
      </section>

      <!-- 底部行动区域 -->
      <section class="cta-section">
        <div class="cta-content">
          <h2>开始您的投资之旅</h2>
          <p>加入 MicroInvest，体验专业的投资服务</p>
          <div class="cta-buttons">
            <el-button type="primary" size="large" @click="startInvesting">
              立即开始投资
            </el-button>
            <el-button size="large" @click="contactUs">
              联系我们
            </el-button>
          </div>
        </div>
      </section>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
import { useTokenStore } from '@/stores/token'

const router = useRouter()
const tokenStore = useTokenStore()

const startInvesting = () => {
  if (tokenStore.hasToken) {
    router.push('/center/findStock')
  } else {
    router.push('/user/auth')
  }
}

const contactUs = () => {
  // 可以跳转到联系页面或显示联系方式
  console.log('联系我们')
}
</script>

<style scoped>
.about-us-container {
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}

.background-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 10%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部横幅 */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  color: #333;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* 通用样式 */
section {
  padding: 80px 0;
  background: white;
  margin: 20px 0;
  border-radius: 20px;
  border: 2px solid #000000;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #000000;
  margin-bottom: 20px;
  font-weight: 600;
}

.section-header p {
  font-size: 1.2rem;
  color: #000000;
  max-width: 600px;
  margin: 0 auto;
}

/* 公司介绍 */
.company-intro {
  background: #ffffff;
  border: 2px solid #000000;
}

.intro-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000;
  margin-bottom: 20px;
}

.core-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.value-item {
  text-align: center;
  padding: 20px;
  background: white;
  border: 2px solid #000000;
  border-radius: 15px;
}

.value-item h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 200px;
  height: 200px;
  background: #000000;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 3rem;
}

.image-placeholder p {
  margin-top: 10px;
  font-size: 1rem;
}

/* 发展历程 */
.timeline-section {
  background: #000000;
  color: white;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  background: #fff;
  color: #333;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 120px;
  text-align: center;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  padding: 0 40px;
  text-align: center;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.timeline-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 团队介绍 */
.team-section {
  background: #000000;
  color: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.team-member {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-avatar {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
}

.team-member h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.member-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.member-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* 企业文化 */
.culture-section {
  background: #000000;
  color: white;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.culture-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  border-radius: 20px;
}

.culture-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.culture-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.culture-item p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* 技术优势 */
.tech-section {
  background: #000000;
  color: white;
}

.tech-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.tech-feature {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  border-radius: 20px;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.tech-feature h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.tech-feature p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* 合作伙伴 */
.partners-section {
  background: #000000;
  color: white;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.partner-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffffff;
  border-radius: 20px;
}

.partner-logo {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.partner-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.partner-item p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* 联系我们 */
.contact-section {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 20px;
}

.contact-icon {
  font-size: 2rem;
  color: #333;
  min-width: 50px;
}

.contact-details h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #000000;
}

.contact-details p {
  font-size: 1rem;
  line-height: 1.6;
  color: #000000;
}

/* 底部行动区域 */
.cta-section {
  background: #000000;
  color: white;
  text-align: center;
  padding: 80px 0;
  border-radius: 20px;
  margin: 20px 0;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .intro-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .core-values {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    text-align: left;
  }
  
  .timeline-year {
    align-self: flex-start;
    margin-bottom: 20px;
  }
  
  .timeline-content {
    padding: 0;
    text-align: left;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
}
</style> 